package libro;

public class circle3 {
		private double radius = 1;
		
		private static int numberobj = 0;
		
		public circle3()
		{
			numberobj++;
		}
		public circle3(double radius)
		{
			this.radius=radius;
			numberobj++;
		}
		public double getRadio()
		{
			return radius;
			
		}
		public void setRadius(double newRadius)
		{
			radius = (newRadius >= 0) ? newRadius : 0;
		}
		public static int getnumberobj()
		{
			return numberobj;
		}
		public double getArea()
		{
			return Math.pow(radius, 2) * Math.PI;
		}
			
		}
		
		
		

